from common.read_data_util import read_data


# 读取登录接口json数据
def read_login_data():
    return read_data("/data/loginData.json")


# 用户添加
def read_manager_user_add_data():
    return read_data("/data/manageUserData.json")


# 删除指定用户
def read_manage_user_delete_uid():
    return read_data("/data/delUidData.json")


# 更新用户
def read_manage_user_update_uid():
    return read_data("/data/updateUserData.json")


# 用户重置密码
def read_manage_user_reset_pwd():
    return read_data("/data/resetPwdData.json")


# 添加安装记录
def read_manage_install_record():
    return read_data("/data/installRecordData.json")


# 通过ID删除安装记录
def read_install_record_delete():
    return read_data("/data/installDeleteData.json")


# 通过ID删除更新安装记录
def read_install_record_update():
    return read_data("/data/installUpdataData.json")


# 添加提现记录
def readWithdrawRecordAdd():
    return read_data("/data/addWithdrawData.json")


# 通过ID查看详情
def readQueryWithdrawById():
    return read_data("/data/queryWithdrawByIdData.json")


# 修改提现记录表
def readUpdateWithdraw():
    return read_data("/data/updateWithdrawData.json")


# 删除 提现记录表(ID)
def readDeleteWithdraw():
    return read_data("/data/delwhitdrawIdData.json")

# if __name__ == '__main__':
#     datas = read_manage_user_addData()
#     for data in datas:
#         if data[1] is not None:
#             data[1]=int(data[1])
#         else:
#             data[1]=data[1]
#
#         print(data[1])
